<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" errorPage="hello.jsp" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<title>学生信息搜索结果</title>
</head>
<body>
<jsp:include page="title.jsp" /><br/>
<div align="center">
<h3>课程号：<s:property value="#request.courseInfo.courseID" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 课程名：<s:property value="#request.courseInfo.courseName" /></h3> <br/>
   <h3>搜索结果</h3> <br/>
    <font color="red"><s:actionerror/></font>
	<font color="red"><s:actionmessage /></font>
   
   <table>
   <tr>
   <th>学号</th>
   <th>学生姓名</th>
   <th></th>
   <th></th>
   <th>添加</th>
   </tr>
   <s:iterator value="#request.findStudent" >
   <tr>
   		<td>
			 <s:property value="studentID" />
    	</td>
    	<td>
			 <s:property value="name" />
    	</td>
    	
    	<s:form action="addRegistedStudentB"  namespace="" method="post">
   		<td>
   			<input type="hidden" name="course.studentID" value="<s:property value="studentID" />" /><br/>
		</td>
		<td>
   			<input type="hidden" name="course.courseID" value="<s:property value="#request.needCourseID" />" /><br/>
		</td>
    	<td>
			<input type="submit" class="btns" value="添加"  />
		</td>
		</s:form>
	</tr>
   	</s:iterator>
	</table>
	<s:form action="deleteRegistedStudentB"  namespace="" method="post">
   		<input type="hidden" name="course.courseID" value="<s:property value="#request.courseInfo.courseID" />" />
		<input type="submit" class="btns"  value="取消"  />
	</s:form>
</div>	
	
</body>
</html>